package net.xiangcaowuyu.springcloud.alibaba.handler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import net.xiangcaowuyu.springcloud.entites.CommonResult;

/**
 * 博客：https://www.xiangcaowuyu.net
 * Description:
 *
 * @Author: 香草物语
 * DateTime: 2021-07-25 18:06
 */
public class MyHandler {

    public static CommonResult handlerException1(BlockException exception) {
        return new CommonResult(4444, "按客户自定义的global handlerException---1");
    }

    public static CommonResult handlerException2(BlockException exception) {
        return new CommonResult(4444, "按客户自定义的global handlerException---2");
    }

}
